<div style="font-size:24px;margin-top: 40px;margin-bottom: 40px;margin-left:180px;">
    <font color="red">(<?php echo $this->result->userinfo->storeno;?>)&nbsp;&nbsp;[<?php echo $this->result->userinfo->nikename;?>]</font>&nbsp;&nbsp;入库成功，&nbsp;
    <a href="/admini/managestore/index?nostore=<?php echo $this->result->userinfo->storeno;?>" style="color:blue;">查看用户仓库</a>
    <br/>
    <h2>物品详细信息:</h2>
    <table>
        <tr><td>物流信息:</td><td><?php echo $this->result->logistics?$this->result->logistics:"无";?></td></tr>
        <tr><td>包裹名称:</td><td><?php echo $this->result->productName?$this->result->productName:"";?></td></tr>
        <tr><td>物品重量:</td><td><?php echo $this->result->weight?$this->result->weight/1000:"无";?>kg</td></tr>
        <tr><td>体积重量:</td><td><?php echo $this->result->length?$this->result->length:"0";?>*<?php echo $this->result->width?$this->result->width:"0";?>*<?php echo $this->result->height?$this->result->height:"0";?>=<?php echo $this->result->volumeWeight?$this->result->volumeWeight/1000:"0";?>kg</td></tr>
    </table>
</div>
<div class="rktj">    
<ul>
<li><a href="javascript:void(0)" class="anvbotton4" id="printcode"><span>打印编号</span></a></li>
<!--<li><a href="javascript:void(0)" class="anvbotton4" id="printstoreno"><span>打印仓库号</span></a></li>-->
</ul>
</div>

<div id="printform" >
    <script type="text/javascript" src="/admins/js/jquery/jquery.PrintArea.js"></script>
    <div id="printadd" style="width:280px;text-align: center;">
        <style>
        body{
            -webkit-print-color-adjust: exact;
        }
        </style>
        <div style="width:220px;float:left;margin-bottom: 10px;text-align: left;font-size: 14px;font-family: Microsoft yahei;margin-left:90px;margin-top:20px;"><?php echo $this->result->barcode;?><div id="loginstoreno" style="margin-right:35px;text-align:right;float:right;width:50px;font-size:14px;font-weight:900;"><?php if($this->result->userinfo){echo $this->result->userinfo->storeno;}else{echo "";}?></div></div>
        <div style='margin-bottom: 5px;width:280px;margin-left: 42px;'><img id="barcode" src="/barcode/barcode.php?codebar=BCGcode128&text=<?php echo $this->result->barcode;?>" alt="barcode" width="180px" height="40px" style="margin-left:2px"/></div>
        <div style='margin-bottom: 5px;width:280px;margin-left: 90px;'>
            <ul class="kwtj">
                <?php if(!$this->location){echo "个人云仓库";}else{foreach($this->location as $val){ ?>
                <li><?php echo $val;?></li>
                <?php }}?>
            </ul>
        </div>
    </div>
</div>
<script type="text/javascript" >
    $(document).ready(function(){
        $('#barcode').load(function(){
            $('div#printform').printArea();
        });
        $('#printcode').click(function(){
            $('div#printform').printArea();
        });
    }); 
</script>